﻿namespace StreetCrime
{
    using System.Collections.Generic;
    using WP7Contrib.Collections;
    using WP7Contrib.Common;

    public sealed class StreetLevelCrimeStreetGrouping : BaseModel
    {
        private readonly ObservableCollection<StreetLevelCrime> crimes;

        public StreetLevelCrimeStreet Street { get; private set; }

        public ReadOnlyObservableCollection<StreetLevelCrime> Crimes { get { return new ReadOnlyObservableCollection<StreetLevelCrime>(this.crimes); } }

        public StreetLevelCrimeStreetGrouping(StreetLevelCrimeStreet street, IEnumerable<StreetLevelCrime> crimes)
        {
            this.Street = street;
            this.crimes = new ObservableCollection<StreetLevelCrime>(crimes);
        }
    }
}